projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1e21c1
)
Plug a memory leak in an error case
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 16 Sep 2020 19:59:49 +0000
(15:59 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 16 Sep 2020 23:13:18 +0000
(19:13 -0400)
gtk_show_uri() not freeing the error after showing
it to the user.
Pointed out by Peter Bloomfield in #3166
gtk/gtkshow.c
patch
|
blob
|
history
diff --git
a/gtk/gtkshow.c
b/gtk/gtkshow.c
index 0160a8fe9d4a25d1b503acab81d8204108f93b9e..9ecfeb7d849b1ff380147132d0b5882c3c735127 100644
(file)
--- a/
gtk/gtkshow.c
+++ b/
gtk/gtkshow.c
@@
-182,6
+182,8
@@
show_uri_done (GObject *object,
G_CALLBACK (gtk_window_destroy), NULL);
gtk_window_present (GTK_WINDOW (dialog));
+
+ g_error_free (error);
}
}